﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Account;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Auditing;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.TenantManagement;
//using Volo.Abp.PermissionManagement.HttpApi;
//using Volo.Abp.TenantManagement;

namespace AbpVnext__Comon
{
    /// <summary>
    /// 所有的项目，抽象成AbpModule
    /// 方便使用和维护。
    ///  项目服务隔离 ，好处：独立维护
    /// </summary>
    [DependsOn(
        typeof(ApplicationContractsMoudule),
              typeof(AbpAspNetCoreMvcModule)
        //配置权限应用模块
        //, typeof(AbpPermissionManagementHttpApiModule)

         //配置应用身份认证模块
         , typeof(AbpIdentityHttpApiModule)
        //配置应用账户模块
        , typeof(AbpAccountHttpApiModule)
        //配置多租户模块
        , typeof(AbpTenantManagementHttpApiModule)
        //特征 应用模块
        ,typeof(AbpFeatureManagementHttpApiModule)
        )]
    public class HttpApiMoudule : AbpModule
    {
        /// <summary>
        /// 依赖注入
        /// </summary>
        /// <param name="context"></param>
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            //base.ConfigureServices(context); 依赖注入 代码注册
            //context.Services.AddTransient<IUserService, UserService>();
        }
    }
}
